﻿using System.ComponentModel.Composition;
using ParaEditor.Desktop.Interfaces;
using ParaEditor.Infrastructure;
using Microsoft.Practices.Prism.Regions;

namespace ParaEditor.Desktop.ViewModel
{
    [Export(typeof(ILoginViewModel))]
    [PartCreationPolicy(CreationPolicy.NonShared)]

    public class LoginViewModel : ViewModelBase, ILoginViewModel
    {
        private IRegionManager regionManager;
        public IRegionManager RegionManager
        {
            get
            {
                return this.regionManager;
            }
            set
            {
                this.regionManager = value;
            }
        }

        [ImportingConstructor]
        public LoginViewModel(IRegionManager regionManager)
        {
            this.regionManager = regionManager;
        }
    }
}
